﻿namespace LinkedTU.Models
{
    using System.ComponentModel.DataAnnotations;
    using LinkedTU.Common.Constants;

    public class Comment : BaseDbEntity
    {
        public int CommentId { get; set; }

        [MinLength(ValidationConstants.MaxCommentContentLength)]
        [MaxLength(ValidationConstants.MinCommentContentLength)]
        public string Content { get; set; }

        public virtual GroupPost Post { get; set; }

        public virtual ApplicationUser Author { get; set; }
    }
}
